package ext.tianma.model;

import java.sql.Timestamp;

import wt.fc.WTObject;

import com.ptc.windchill.annotations.metadata.ColumnProperties;
import com.ptc.windchill.annotations.metadata.GenAsPersistable;
import com.ptc.windchill.annotations.metadata.GeneratedProperty;
import com.ptc.windchill.annotations.metadata.PropertyConstraints;

/**
 * 类名: ERPQuantity </br>
 * 包名: ext.tianma.model
 * 描述: ERP传送料号用量信息
 * @author xucr
 * 创建时间: 2020年11月3日
 * 发布版本: V1.0
 */
@GenAsPersistable(superClass = WTObject.class, interfaces = {}, properties = {
	@GeneratedProperty(name = "userName", type = String.class, javaDoc = "用户名", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "jobs", type = String.class, javaDoc = "工单号", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "partNumber", type = String.class, javaDoc = "成品料号", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 300, required = false)),
	@GeneratedProperty(name = "partView", type = String.class, javaDoc = "成品视图", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "childNumber", type = String.class, javaDoc = "子料料号", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 300, required = false)),
	@GeneratedProperty(name = "childView", type = String.class, javaDoc = "子料视图", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "quantity", type = String.class, javaDoc = "用量", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "unit", type = String.class, javaDoc = "单位", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "pushDate", type = Timestamp.class, javaDoc = "ERP推送时间", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false))
	})
public class ERPQuantity extends _ERPQuantity{
	static final long serialVersionUID = 1;
	public static ERPQuantity newERPQuantity()  {
		final ERPQuantity instance = new ERPQuantity();
		try {
			instance.initialize();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		return instance;
	}
}
